x;
x.y;
x.y.z;
x?.y.z;
x?.y?.z;
!x;

interface Example {
  property?: string;
}

declare const example: Example;
const includesBaz = example.property?.includes('baz') ?? false;